import '../../scss/basicInfo.scss'
import React from 'react'

export default React.createClass({
    render() {
        var player,
            node
        if (G.player) {
            player = G.player
            node = <div>
                <div>名字{player.basicInfo.name}</div>
                <div>等级{player.basicInfo.lvl}</div>
                <div>金钱{player.basicInfo.money}</div>
                <div>金币{player.basicInfo.gold}</div>
                <div>攻击力{player.fightAttri.attack}</div>
                <div>防御力{player.fightAttri.defend}</div>
            </div>
        }
        return <div id='basicInfo'>
            <div className='head'>
                <div className='title'>人物基础信息</div>
            </div>{node}</div>
    }
})
